From c52d9cfc14009b1821f99e2c9b30534ae164914f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 19 Jul 2018 17:50:54 -0400 Subject: [PATCH] moji chooser: Try harder to avoid fallback We don't want to see any fallback rendering. The current check was still letting some fallback combinations through. Based on work by Julian Sparber. --- gtk/gtkemojichooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index 64ec1959ce..68cabda67e 100644 --- a/gtk/gtkemojichooser.c +++ b/gtk/gtkemojichooser.c @@ -404,7 +404,7 @@ add_emoji (GtkWidget *box, pango_layout_get_extents (layout, &rect, NULL); /* Check for fallback rendering that generates too wide items */ - if (rect.width >= 2 * chooser->emoji_max_width) + if (rect.width >= 1.5 * chooser->emoji_max_width) { gtk_widget_destroy (label); return; -- 2.30.2